<script>
import { computed } from "vue";
import { useRoute } from "vue-router";
export default {
  setup() {
    const router = new useRoute();
    console.log(router);
    const id = computed(() => router.params.id);
    console.log(id.value);
    return {
      id,
    };
  },
  render() {
    return (
      <>
        <h4>dynamic routing id: {this.id}</h4>
      </>
    );
  },
};
</script>